#include <iostream>
using namespace std;

class Student 
{
private : 
   int num;
   char name[20];
   char sex;
   
public :  
   void display( )
   {
      cout<<"num:"<<num<<endl;
      cout<<"name:"<<name<<endl;
      cout<<"sex:"<<sex<<endl;
   }
   
   void getnum(void)
   {
   	  cin>>num;
      cin>>name;
      cin>>sex;
   }
};

int main(int argc, char **argv)
{
	Student aa;
	
	aa.getnum();
	
	aa.display();
	
	return 0;
}
